{
    "hospitalId": "H${random.nextInt(1000)}",
    "name": "${["仁心", "博爱", "同济", "协和", "华西"][random.nextInt(5)]}${["医院", "医疗中心", "诊所"][random.nextInt(3)]}",
    "level": "${["三甲", "三乙", "二甲", "二乙"][random.nextInt(4)]}",
    "departments": [
        <#list 1..4 as i>
        {
            "id": "DEPT${random.nextInt(100)}",
            "name": "${["内科", "外科", "儿科", "妇产科", "骨科", "眼科", "口腔科", "神经科"][random.nextInt(8)]}",
            "floor": "${random.nextInt(20) + 1}楼",
            "headDoctor": {
                "id": "DOC${random.nextInt(1000)}",
                "name": "${names[random.nextInt(5)]}",
                "title": "${["主任医师", "副主任医师", "主治医师"][random.nextInt(3)]}",
                "speciality": "${["普通", "专家", "特需"][random.nextInt(3)]}门诊"
            },
            "staff": [
                <#list 1..3 as j>
                {
                    "id": "STF${random.nextInt(1000)}",
                    "name": "${names[random.nextInt(5)]}",
                    "position": "${["医师", "护士", "医技", "药剂师"][random.nextInt(4)]}",
                    "schedule": {
                        "shift": "${["早班", "中班", "晚班"][random.nextInt(3)]}",
                        "room": "${random.nextInt(50) + 101}诊室"
                    }
                }<#if j < 3>,</#if>
                </#list>
            ]
        }<#if i < 4>,</#if>
        </#list>
    ],
    "patients": [
        <#list 1..3 as i>
        {
            "patientId": "P${random.nextInt(10000)}",
            "name": "${names[random.nextInt(5)]}",
            "age": ${random.nextInt(80) + 1},
            "gender": "${["男", "女"][random.nextInt(2)]}",
            "contact": {
                "phone": "${phone}",
                "address": "${city}市${district}区",
                "emergency": {
                    "name": "${names[random.nextInt(5)]}",
                    "relation": "${["父母", "配偶", "子女", "兄弟姐妹"][random.nextInt(4)]}",
                    "phone": "${phone}"
                }
            },
            "medicalRecord": {
                "admissionDate": "2024-${random.nextInt(12)+1}-${random.nextInt(28)+1}",
                "diagnosis": "${["高血压", "糖尿病", "冠心病", "肺炎", "骨折"][random.nextInt(5)]}",
                "severity": "${["轻度", "中度", "重度", "危重"][random.nextInt(4)]}",
                "treatments": [
                    <#list 1..3 as j>
                    {
                        "type": "${["药物治疗", "手术治疗", "物理治疗", "心理治疗"][random.nextInt(4)]}",
                        "description": "${["口服药物", "静脉注射", "局部治疗", "康复训练"][random.nextInt(4)]}",
                        "duration": "${random.nextInt(30) + 1}天"
                    }<#if j < 3>,</#if>
                    </#list>
                ],
                "prescriptions": [
                    <#list 1..2 as j>
                    {
                        "medicineId": "MED${random.nextInt(1000)}",
                        "name": "${["阿司匹林", "布洛芬", "头孢", "维生素", "钙片"][random.nextInt(5)]}",
                        "dosage": "${random.nextInt(3) + 1}片",
                        "frequency": "每日${random.nextInt(3) + 1}次",
                        "period": "${random.nextInt(14) + 1}天"
                    }<#if j < 2>,</#if>
                    </#list>
                ]
            },
            "insuranceInfo": {
                "provider": "${["医保", "商业保险", "自费"][random.nextInt(3)]}",
                "policyNumber": "INS${random.nextInt(100000)}",
                "coverage": "${random.nextInt(40) + 60}%"
            }
        }<#if i < 3>,</#if>
        </#list>
    ],
    "facilities": [
        <#list 1..3 as i>
        {
            "id": "FAC${random.nextInt(100)}",
            "name": "${["手术室", "检验科", "放射科", "药房", "康复中心"][random.nextInt(5)]}",
            "location": "${random.nextInt(20) + 1}楼",
            "equipment": [
                <#list 1..2 as j>
                {
                    "id": "EQP${random.nextInt(1000)}",
                    "name": "${["CT机", "核磁共振", "B超机", "心电图机", "血液分析仪"][random.nextInt(5)]}",
                    "status": "${["正常使用", "维护中", "已预约"][random.nextInt(3)]}",
                    "nextMaintenance": "2024-${random.nextInt(12)+1}-${random.nextInt(28)+1}"
                }<#if j < 2>,</#if>
                </#list>
            ]
        }<#if i < 3>,</#if>
        </#list>
    ]
}
